package com.mimiwang.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mimiwang.article.entity.ArticleInfoEntity;
import com.mimiwang.common.utils.PageUtils;
import com.mimiwang.common.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 
 *
 * @author huangqicai
 * @email 1355518552@qq.com
 * @date 2022-10-07 15:31:26
 */
public interface ArticleInfoService extends IService<ArticleInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    String writeArticle(HttpServletRequest request);

    /*点击文章正式发布执行这个接口*/
    R publish(Map<String, Object> map, HttpServletRequest request);

    /*点击文章保存，就执行这个方法*/
    R saveArticle(Map<String, Object> map, HttpServletRequest request);

    /*根据文章id进行删除*/
    R deleteArticle(Integer articleId,HttpServletRequest request);

    /*点击编辑按钮，进行数据回显*/
    R updateArticle(Integer articleId, HttpServletRequest request);
}

